package tony.core.enums

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue

/**
 * 配合 [tony.core.enums.EnumValue]枚举使用, 被注解的枚举值应该被视为 null
 * @author tangli
 * @date 2025/09/04 18:26
 */
@MustBeDocumented
@Target(
    AnnotationTarget.PROPERTY_GETTER,
    AnnotationTarget.PROPERTY_SETTER,
    AnnotationTarget.FIELD,
    AnnotationTarget.VALUE_PARAMETER
)
@Retention(AnnotationRetention.RUNTIME)
@JsonEnumDefaultValue
@JacksonAnnotationsInside
public annotation class DefaultAndAsNull
